﻿using AutoTest.Domain.Entities;

namespace AutoTest.Business.IServices
{
    /// <summary>
    /// 订单日志服务
    /// </summary>
    public interface IOrderLogService
    {

        /// <summary>
        /// 添加订单日志
        /// </summary>
        /// <param name="log"></param>
        /// <returns></returns>
        Task AddOrderLogAsync(OrderLog log);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="order"></param>
        /// <param name="operate"></param>
        /// <returns></returns>
        Task AddOrderLogAsync(Order order, string operate);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="orderid"></param>
        /// <param name="operate"></param>
        /// <param name="userid"></param>
        /// <param name="result1"></param>
        /// <param name="result2"></param>
        /// <returns></returns>
        Task AddOrderLogAsync(string orderid, string operate, long userid, string result1 = "", string result2 = "");
    }
}
